<template>
  <div class="product-buy">
      <div class="total">
          合计：<span >{{total}}</span>
      </div>
      <div class="buy" @click="handleBuy">
          <span>购买水票</span>
      </div>
  </div>
</template>

<script>
export default {
    props: ['total'],
    methods: {
        handleBuy() {
            this.$emit('handleBuy')
        }
    },
};
</script>

<style lang="less" scoped>
.product-buy {
    position: fixed;
    z-index: 999;
    bottom: 0;
    width: 100%;
    height: 15vw;
    border-top: 1px solid #e5e5e5;
    background: #fff;
    display: flex;
    align-items: center;
    font-size: 4vw;

    .total {
        width: 70%;
        padding-left: 3vw;
        span {
      color: #ff6158;

        }
    }
    .buy {
        width: 30%;
        background: rgb(0, 143, 239);
        color: #fff;
        text-align: center;
        height: 15vw;
        line-height: 15vw;
    }
}
</style>